##############################alias config##############################
alias tar_gz_c='tar -zcvf'
alias tar_gz_x='tar -zxvf'
alias crontab_e='crontab -e'
alias check_siz_dir='du -h --max-depth=1'
alias find_big_file='find / -type f -size ' ## 查找大文件，使用如： find_big_file +100M
alias view_dir_size='du -sh ' ## 查看目录大小，使用如： view_dir_size /home
alias empty_file='cat /dev/null > '
alias show_ssh_config='vim /etc/ssh/sshd_config'
alias shutdown_now='shutdown -h now'
alias rpm_grep='rpm -aq|grep'
alias network_restart='service network restart'
alias yum_remove='yum -y remove'

alias systemctl_is-enabled='systemctl is-enabled'
alias systemctl_enable='systemctl enable'
alias systemctl_disable='systemctl disable '
alias systemctl_start='systemctl start'
alias systemctl_stop='systemctl stop'
alias systemctl_restart='systemctl restart'
alias systemctl_status='systemctl status'
alias systemctl_restart_network='systemctl restart network'

alias check_auto_enable='systemctl  list-unit-files |  grep enable'

alias firewall_list_ports='firewall-cmd --list-ports'
alias firewall_reload='firewall-cmd --reload'
alias firewall_state='firewall-cmd --state'
alias firewall_is_enable='systemctl is-enabled firewalld.service'
alias firewall_enable='systemctl enable firewalld'
alias firewall_disable='systemctl disable firewalld'
alias firewall_start='systemctl start firewalld'
alias firewall_stop='systemctl stop firewalld'
alias firewall_restart='systemctl restart firewalld'



alias firewall_add_port='addport(){ firewall-cmd --zone=public --add-port=$1/tcp --permanent;firewall_reload;};addport'
alias firewall_query_port='port(){ firewall-cmd --zone=public --query-port=$1/tcp;};port'
alias firewall_remove_port='port(){ firewall-cmd --zone=public --remove-port=$1/tcp --permanent;firewall_reload;};port'

##iftop_eth ens33
alias iftop_eth='iftopEth(){ iftop -i $1 -n -P;};iftopEth'


alias check_mem_info='ps aux | head -1; ps aux | sort -rnk 4 | head -5'


##############################alias config##############################
